\hypertarget{battery_8h}{
\section{atmega1281/low/include/battery.h File Reference}
\label{battery_8h}\index{atmega1281/low/include/battery.h@{atmega1281/low/include/battery.h}}
}
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__nxbot__batt_ga1a0d280534953662003acd91f20071c1}{BATT\_\-READ\_\-VOLT}~0
\begin{DoxyCompactList}\small\item\em constant definition for battery\_\-read \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__batt_ga61262b004f6813b955f4d0b2d6553817}{BATT\_\-READ\_\-PERC}~1
\begin{DoxyCompactList}\small\item\em constant definition for battery\_\-read \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__nxbot__batt_gabfbbfb986d008991dbbe32035cbdcde6}{battery\_\-init} (void)
\begin{DoxyCompactList}\small\item\em Hardware initialization for the battery module. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__batt_gabf908968d26d8f291a60846d6dd51251}{battery\_\-ledEnable} (unsigned char en)
\begin{DoxyCompactList}\small\item\em Function used to write the state of the battery-\/LED, located in the rear of NXBot. \item\end{DoxyCompactList}\item 
unsigned char \hyperlink{group__nxbot__batt_gaa4799455728e1873e05d8bbe460d03fc}{battery\_\-getState} (void)
\begin{DoxyCompactList}\small\item\em Reads the state of the battery, in \mbox{[}\%\mbox{]} units. \item\end{DoxyCompactList}\item 
unsigned int \hyperlink{group__nxbot__batt_gada2d7b272290fee99245113b1c134a20}{battery\_\-getVoltage} (void)
\begin{DoxyCompactList}\small\item\em Reads the state of the battery, in \mbox{[}V\mbox{]} units. \item\end{DoxyCompactList}\item 
unsigned int \hyperlink{group__nxbot__batt_gaec4ef3b620c24ee1c4ea58e26fe93cb3}{battery\_\-read} (unsigned char type)
\begin{DoxyCompactList}\small\item\em Read the state of the battery, wether voltage or percentage. \item\end{DoxyCompactList}\item 
unsigned char \hyperlink{group__nxbot__batt_ga6fc256badc91b8ec6cc7be59d0626088}{adc\_\-read} (unsigned char channel)
\item 
unsigned char \hyperlink{group__nxbot__batt_ga9124f98abd7677d3398df13434847432}{adc\_\-getChannel} (void)
\item 
void \hyperlink{group__nxbot__batt_ga58ebe3e17591f56560de197b25e19b2a}{adc\_\-changeChannel} (unsigned char channel)
\end{DoxyCompactItemize}
